home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1998 July / WPCJUL98.ISO / DXRS / BUYERS07.DXR / acrobat loader_5.ls < prev    next >
Encoding:
Text File  |  1998-05-11  |  806 b   |  27 lines

  1. on checkAcrobatRunning Exename
  2.   repeat with t = 1 to the number of chars in Exename
  3.     if char t of Exename = "." then
  4.       set howmany to t
  5.       exit repeat
  6.     end if
  7.   end repeat
  8.   set shortexename to char 1 to howmany - 1 of Exename
  9.   put "shortexename", shortexename
  10.   set tasklistStore to gMasterAppObject(mGetTaskList)
  11.   repeat with t = 1 to the number of lines in tasklistStore
  12.     set taskLinet to line t of tasklistStore
  13.     put "taskLinet", taskLinet
  14.     repeat with d = 1 to the number of chars in taskLinet
  15.       if char d of taskLinet = "," then
  16.         set howmany to d
  17.         exit repeat
  18.       end if
  19.     end repeat
  20.     set tasknamet to char 1 to howmany - 1 of taskLinet
  21.     if tasknamet = shortexename then
  22.       set HANACRORunning to 1
  23.       exit repeat
  24.     end if
  25.   end repeat
  26. end
  27.